package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);


    public void add(User user, Integer[] roleIds);
    public PageResult pageQuery(QueryPageBean queryPageBean);
    public User findById(Integer id);
    public List<Integer> findroleIdsByuserId(Integer id);
    public void edit(User user, Integer[] roleIds);
    public void deleteById(Integer id);
    public List<CheckGroup> findAll();

    Integer findRoleByUserName(String username);

    List<Menu> getMenuByRoleId(Integer roleId);
}
